﻿using System;
using System.Collections.Generic;
using System.Text;
using DOM;
namespace BIZ
{
    /// <summary>
    /// Actor 的摘要说明。
    /// </summary>
    public class CodeModifyBIZ
    {
        public CodeModifyBIZ()
        {
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }
        public int CheckPasswd(string userName, string passwd)
        {
            int i;
            Users user = new Users();
            i = user.CheckPasswd(userName, passwd);
            return i;
        }
        public bool ChangePasswd(string userName,string newPasswd)
        {
            bool b = false ;
            
            Users user = new Users();
           
            b = user.UpdatePasswd(userName, newPasswd);

            return b;
            
        }
    }
}
